package thomas.bier.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootPanel;

public class BierEntrypoint implements EntryPoint {
	public static RootPanel main = RootPanel.get("main");
	public static LoginBarGUI login = new LoginBarGUI();
	public static RegistreerGUI register = new RegistreerGUI();
	
	public void onModuleLoad() {
		
		if (CurrentGebruiker.getGebruiker() == null)
		{
			main.add(login.ShowGUI());
		}
		else {
			Window.alert("ingelogd");
		}
	}  
}